package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Dwtz generated by hbm2java
 */
@Entity
@Table(name = "dwtz")
public class Dwtz implements java.io.Serializable
{

    private Long id;
    private int version;
    private Jbqk jbqk;
    private String username;
    private String operation;
    private Date optdate;
    private String dwmc;
    private String zzjgdm;
    private String dkkh;
    private String djzch;
    private BigDecimal zczb;
    private String tzfs;
    private String tzbz;
    private BigDecimal tzje;
    private BigDecimal zhrmb;
    private BigDecimal cgbl;
    private String clsj;
    private String szd;
    private String zyyw;
    private Short xh;

    public Dwtz()
    {
    }

    public Dwtz( Long id )
    {
        this.id = id;
    }

    public Dwtz( Long id,
                 Jbqk jbqk,
                 String username,
                 String operation,
                 Date optdate,
                 String dwmc,
                 String zzjgdm,
                 String dkkh,
                 String djzch,
                 BigDecimal zczb,
                 String tzfs,
                 String tzbz,
                 BigDecimal tzje,
                 BigDecimal zhrmb,
                 BigDecimal cgbl,
                 String clsj,
                 String szd,
                 String zyyw,
                 Short xh )
    {
        this.id = id;
        this.jbqk = jbqk;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.dwmc = dwmc;
        this.zzjgdm = zzjgdm;
        this.dkkh = dkkh;
        this.djzch = djzch;
        this.zczb = zczb;
        this.tzfs = tzfs;
        this.tzbz = tzbz;
        this.tzje = tzje;
        this.zhrmb = zhrmb;
        this.cgbl = cgbl;
        this.clsj = clsj;
        this.szd = szd;
        this.zyyw = zyyw;
        this.xh = xh;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "dwmc", length = 50)
    public String getDwmc()
    {
        return this.dwmc;
    }

    public void setDwmc( String dwmc )
    {
        this.dwmc = dwmc;
    }

    @Column(name = "zzjgdm", length = 50)
    public String getZzjgdm()
    {
        return this.zzjgdm;
    }

    public void setZzjgdm( String zzjgdm )
    {
        this.zzjgdm = zzjgdm;
    }

    @Column(name = "dkkh", length = 50)
    public String getDkkh()
    {
        return this.dkkh;
    }

    public void setDkkh( String dkkh )
    {
        this.dkkh = dkkh;
    }

    @Column(name = "djzch", length = 50)
    public String getDjzch()
    {
        return this.djzch;
    }

    public void setDjzch( String djzch )
    {
        this.djzch = djzch;
    }

    @Column(name = "zczb", precision = 18)
    public BigDecimal getZczb()
    {
        return this.zczb;
    }

    public void setZczb( BigDecimal zczb )
    {
        this.zczb = zczb;
    }

    @Column(name = "tzfs", length = 10)
    public String getTzfs()
    {
        return this.tzfs;
    }

    public void setTzfs( String tzfs )
    {
        this.tzfs = tzfs;
    }

    @Column(name = "tzbz", length = 20)
    public String getTzbz()
    {
        return this.tzbz;
    }

    public void setTzbz( String tzbz )
    {
        this.tzbz = tzbz;
    }

    @Column(name = "tzje", precision = 18)
    public BigDecimal getTzje()
    {
        return this.tzje;
    }

    public void setTzje( BigDecimal tzje )
    {
        this.tzje = tzje;
    }

    @Column(name = "zhrmb", precision = 18)
    public BigDecimal getZhrmb()
    {
        return this.zhrmb;
    }

    public void setZhrmb( BigDecimal zhrmb )
    {
        this.zhrmb = zhrmb;
    }

    @Column(name = "cgbl", precision = 18)
    public BigDecimal getCgbl()
    {
        return this.cgbl;
    }

    public void setCgbl( BigDecimal cgbl )
    {
        this.cgbl = cgbl;
    }

    @Column(name = "clsj", length = 20)
    public String getClsj()
    {
        return this.clsj;
    }

    public void setClsj( String clsj )
    {
        this.clsj = clsj;
    }

    @Column(name = "szd", length = 50)
    public String getSzd()
    {
        return this.szd;
    }

    public void setSzd( String szd )
    {
        this.szd = szd;
    }

    @Column(name = "zyyw", length = 50)
    public String getZyyw()
    {
        return this.zyyw;
    }

    public void setZyyw( String zyyw )
    {
        this.zyyw = zyyw;
    }

    @Column(name = "xh")
    public Short getXh()
    {
        return this.xh;
    }

    public void setXh( Short xh )
    {
        this.xh = xh;
    }

}
